import type { UserRole } from '@/types/role'
export declare interface UserDTO {
  id: number
  username: string
  phone: string
  nickname: string
  status: number
  email: string
  avatar: string
  roleList: UserRole[]
  createdAt: string
  updatedAt: string
}

export declare interface QueryUserDTO {
  username?: string
  phone?: string
  nickname?: string
  status?: string
  email?: string
  roleList?: number[]
}

// 更新用户数据传输对象
export declare interface UpdateUserDTO {
  id: number
  username: string
  phone: string
  email: string
  nickname: string
  status: number
  avatar: string
  roleList: number[]
}

export declare interface AddUserDTO {
  username: string
  password: string
  phone: string
  email: string
  nickname: string
  status: number
  avatar: string
}
